home *** CD-ROM | disk | FTP | other *** search
- {$A+,B-,D+,E+,F-,G+,I+,L+,N-,O-,P-,Q-,R-,S+,T-,V+,X+}
- {$M 16384,0,655360}
-
- {
- FAST.PAS
- Benchmarking program to check VGA access times as well as UVE32
- responce to heavy load.
- }
-
- uses crt,uve32;
-
- var active:integer;
- i:integer;
- begin
- ia_inituve;
- ia_loadspr('cube.uvl',1);
- ia_chainsprite(1,spritesloaded,1);
- ia_loadpalette('cube.pal',pcxpal);
- ia_loadfont(8);
- ia_setfontattr(8,plain,proportional,horizontal,255,true,0);
- ia_powerup;
- ia_setpalette(pcxpal);
- active:=10;
- ia_setcycletime(50);
- repeat
- if active<500 then begin
- for i:=active-9 to active do begin
- spr[i].n:=1;
- spr[i].x:=(i*12) mod 310;
- spr[i].y:=10*((i*12) div 310);
- end;
- inc(active,10);
- if active>500 then active:=500;
- end;
- ia_doframepart1;
- ia_doframepart2;
- ia_printstr(hidden,-32768,50,i2s(active)+' sprites',37);
- ia_doframepart3;
- until keypressed;
- ia_shutdown;
- end.